package com.Tadama.MIDlet;

import com.Tadama.Forms.frmLogin;
import javax.microedition.lcdui.*;
//import javax.microedition.location.Location;
//import javax.microedition.location.LocationProvider;
import javax.microedition.midlet.*;
import com.Tadama.Forms.SplashScreen;
//import javax.microedition.location.LocationListener;

public class TadamaMIDlet extends MIDlet implements CommandListener{
    private Display display;
    private int sec = 1;
    //private LocationProvider locationProvider = null;

    public TadamaMIDlet() {
        try {
      //        locationProvider = LocationProvider.getInstance(null);
            } catch (Exception e) {
              destroyApp(false);
        }
    }
    
    
    public void startApp() {
        if(display == null){
            display = Display.getDisplay(this);
        }        
        display.setCurrent(new SplashScreen(this));
    }
    
    public void pauseApp() {}
    
    public void destroyApp(boolean unconditional) {
        destroyApp(false);
        notifyDestroyed();
    }

    public void commandAction(Command c, Displayable d) {
        
    }

    public void setDisplay(Alert alert, Displayable d) {
        display.setCurrent(alert,d);
    }
}